<template>
  <div>
    <!-- <el-button @click="add()" type="primary">添加</el-button> -->
    <v-add :obj="obj" ref="Och"></v-add>
    <v-list @aa="aa"></v-list>
  </div>
</template>

<script>
import vAdd from "./components/add.vue";
import vList from "./components/list.vue";
export default {
  data() {
    return {
      obj: {
        flag: false,
      },
    };
  },
  components: {
    vAdd,
    vList,
  },
  methods: {
    add() {
      this.obj.flag = true;
    },
    aa(uid) {
      this.obj.flag = true;
      this.$refs.Och.huo(uid);
    },
  },
};
</script>

<style>
</style>